package mtm.ui.list;

import java.awt.datatransfer.DataFlavor;


/**
 * Custom DataFlavor object to transfer JobItem object
 * @author CondorHero89
 *
 */
public class JobDataFlavor extends DataFlavor {
	
	// important note: a class which is transfered by this DataFlavor must be
	// serialized, means all of its members must be serialized
	private static JobDataFlavor instance;
	
	
	/**
	 * Get static instance of CustomDataFlavor class
	 */
	public static JobDataFlavor getInstance() {
		return instance == null ? new JobDataFlavor() : instance;
	}
	

	/**
	 * Constructor
	 */
	private JobDataFlavor() {
		super(JobItem.class, "Job Item");
		instance = this;
	}
}
